package com.czj.demo.enumtest;

public class EnumTest {

    public static void main(String[] args) {


        Color c1 = Color.GREEN;

        if (c1 == Color.BLUE){// 判断两者是相等， 也可以用于Switch 判断

            System.out.println("c1 == Color.BLUE");
        }else {
            System.out.println("c1 != Color.BLUE");
        }

        System.out.println("Color.BLUE = " + Color.BLUE);




        //使用公共的静态常量代替枚举
        Color2 color2_a = Color2.BLUE;
        // 也可以进行判断 比较
        System.out.println("color2_a = " + color2_a);

        
        
    }
}
